var regexpEmail = /^\w[\w\.-]*@[-a-zA-Z0-9]+(\.[-a-zA-Z0-9]+)*\.(aero|biz|cat|com|coop|info|jobs|mobi|museum|name|net|org|pro|travel|gov|edu|mil|int|[a-z][a-z])$/i;

var fieldLabelsMap = new Array();
var fieldChangesMap = new Array();

//enable button
function enableButton(id){
	$('#'+id).removeAttr('disabled');
	$('#'+id).removeClass('form-button-disabled');
	$('#'+id).addClass('form-button');
};

//disable button
function disableButton(id){
	$('#'+id).attr('disabled', 'disabled');
	$('#'+id).removeClass('form-button');
	$('#'+id).addClass('form-button-disabled');
};

//validate text
function isValidText(inputVal) {
    var iChars = "!@#$%^&*+=[]\\/{}|\":<>?";
    for (var i = 0; i < inputVal.length; i++) {
       if (iChars.indexOf(inputVal.charAt(i)) != -1) {
              return false;
        }
    }
    return true;
};